package com.grantz.function.bbs.core.inter;

import java.util.Optional;

import org.springframework.data.domain.Page;

import com.grantz.function.bbs.core.entity.DiscussChild;
import com.grantz.model.bbs.DiscussChildModel;
import com.grantz.model.bbs.DiscussChildSearch;
import com.grantz.models.base.element.page.ElementPage;

public interface DiscussChildService {

	ElementPage<DiscussChildModel> queryElementPage(DiscussChildSearch query)throws Exception;
	
	Page<DiscussChild> queryPage(DiscussChildSearch query) throws Exception;

	Optional<DiscussChild> findOneById(String id);

	DiscussChild save(DiscussChild entity);

}
